<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../templates/template_general.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns="http://www.w3.org/1999/xhtml">

    <ui:define name="title">
        Mon profil - Commercant
    </ui:define>

    <ui:define name="content">
        <div class="column4">
            <div class="title" style="float:left;">
                <div style="float:left;">Mon profil</div>
            </div>
            <div class="offer_box_wide_style2">
                <h:form>
                    <p:messages showDetail="true" id="profil_comm" globalOnly="true" autoUpdate="false"/>
                    <h:panelGrid columns="2" style="width:100%">
                        <h:outputLabel value="Login :" for="login"/>
                        <h:inputText id="login" value="#{login}" title="login"/>
                        <h:outputLabel value="Nom :" for="nom"/>
                        <h:inputText id="nom" value="#{nom}" title="nom"/>
                        <h:outputLabel value="Prénom :" for="prenom"/>
                        <h:inputText id="prenom" value="#{prenom}" title="prenom"/>
                        <h:outputLabel value="Email :" for="email"/>
                        <h:inputText id="email" value="#{email}" title="email"/>
                        <h:outputLabel value="Téléphone :" for="telephone"/>
                        <h:inputText id="telephone" value="#{telephone}" title="telephone"/>
                    </h:panelGrid>
                    <h:panelGrid columns="1" style="width:100%">
                        <h:commandButton id="Enregistrer" value="Enregistrer les modifications" action="#{utilisateurMBean.modifier(login, nom, prenom, email, telephone)}"/>
                    </h:panelGrid>
                   
                </h:form>
            </div>
        </div>
    </ui:define>

</ui:composition>
